import request from "@/api/index.js"

// 获取用户文章
export function getUserArticleApi(page, query = '') {
  return request({
    url: `/IntactArticle/user-article?content=${query}&page=${page}`,
    method: "get"
  })
}

// 设为公开，私密
export function putSetPrivacyApi(id, privacyStateMet) {
  return request({
    url: `/user/privateArticle?articleId=${id}&status=${privacyStateMet}`,
    method: "put"
  })
}

// //删除文章
export function deleteIssueApi(id) {
  return request({
    url: "/IntactArticle/" + id,
    method: "delete"
  })
}
